package demo1;

public class Test1 {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList() ;
       myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.disPlay();
        System.out.println();
        System.out.println(myArrayList.contains(0));
        System.out.println(myArrayList.indexOf(4));
        myArrayList.set(2 , 11);
        System.out.println();
        myArrayList.disPlay();
    }
}


